package com.zq.assistant.ui.widget.recyclerview.adapter.cell;

import com.zq.assistant.ui.widget.recyclerview.RecyclerViewHolder;

/**
 * Created by zhangqiang on 17-7-4.
 */

public abstract class BaseCell<T> implements Cell<RecyclerViewHolder> {

    private int layoutId;
    private int spanSize;
    private T data;

    public BaseCell(int layoutId, int spanSize, T data) {
        this.layoutId = layoutId;
        this.spanSize = spanSize;
        this.data = data;
    }

    public T getData() {
        return data;
    }

    @Override
    public int getLayoutId() {
        return layoutId;
    }

    @Override
    public int getSpanSize() {
        return spanSize;
    }

    @Override
    public void onRecycled(RecyclerViewHolder viewHolder) {

    }
}